package view;

import java.awt.Image;
import java.io.File;
import java.io.IOException;
import javax.imageio.ImageIO;
import javax.swing.JPanel;


public class ViewPanel extends JPanel{
    public ViewPanel () {
        
    }
    public Image getBackground(String fileName) {
        Image ret = null;
        try {
            ret = ImageIO.read(new File(fileName));
        }
        catch (IOException e1) {
            ret = null;
            System.out.println("Image \"" + fileName + "\" could not be found");
        }
        return ret;
    }
}
